home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The PC-SIG Library 10
/
The PC-Sig Library - Shareware for the IBM PC and Compatibles (PC-SIG)(Tenth Edition Disks 1-2804)(1991).iso
/
PC_SIGCD
/
20
/
9
/
DISK2092.ZIP
/
RBBS-LIT.ZIP
/
LIT
/
FOSSIL23.LIT
< prev
next >
Wrap
Text File
|
1990-01-13
|
3KB
|
54 lines
*[FOSSIL23.LIT]***************************************************************
* Description: Removes FOSSIL support *
* RBBS-PC Level: CPC17.3 √ AM *
* Module Affected: RBBSSUB2.BAS *
* Selection Option: FOSSIL = OFF *
* Additional files: None *
******************************************************************************
1654 SUB SetBaud STATIC
IF NOT ZKeepInitBaud THEN _
ZTalkToModemAt$ = MID$(ZBaudRates$,(-5 * ZBPS),5) _ ' KG091702
ELSE ZTalkToModemAt$ = ZModemInitBaud$
CALL Trim (ZTalkToModemAt$)
IF LEN(ZTalkToModemAt$) < 5 THEN _
ZTalkToModemAt$ = SPACE$(4 - LEN(ZTalkToModemAt$)) + _
ZTalkToModemAt$
IF ZEightBit THEN_
Parity = 2 : _ ' No PARITY
DataBits = 3 : _ ' 8 DATA BITS
StopBits = 0 _ ' 1 STOP BIT
ELSE Parity = 3 : _ ' EVEN PARITY
DataBits = 2 : _ ' 7 DATA BITS
StopBits = 0 ' 1 STOP BIT
ComSpeed! = VAL(ZTalkToModemAt$) ' KG090102
IF ComSpeed! > 19200! THEN _ ' KG090102
WasI = 19200! _ ' RK010401
ELSE WasI = ComSpeed! ' KG090102
IF ComSpeed! = 2400! THEN _ ' KG090102
ZBaudRateDivisor = &H30 + (1 * (ZComputerType = 2)) _ ' KG090102
ELSE IF ComSpeed! = 1200! THEN _ ' KG090102
ZBaudRateDivisor = &H60 + (3 * (ZComputerType = 2)) _ ' KG090102
ELSE IF ComSpeed! = 9600! THEN _ ' KG090102
ZBaudRateDivisor = &HC _ ' KG090102
ELSE IF ComSpeed! = 300! THEN _ ' KG090102
ZBaudRateDivisor = &H180 + (11 * (ZComputerType = 2)) _ ' KG090102
ELSE IF ComSpeed! = 450! THEN _ ' KG090102
ZBaudRateDivisor = &H100 + (8 * (ZComputerType = 2)) _ ' KG090102
ELSE IF ComSpeed! = 4800! THEN _ ' KG090102
ZBaudRateDivisor = &H18 _ ' KG090102
ELSE IF ComSpeed! = 19200! THEN _ ' KG090102
ZBaudRateDivisor = &H6 _ ' KG090102
ELSE IF ComSpeed! = 38400! THEN _ ' KG090102
ZBaudRateDivisor = &H3 ' KG090102
MostSignifByte = FIX (ZBaudRateDivisor / 256)
LeastSignifByte = ZBaudRateDivisor - (MostSignifByte * 256)
LineCntlStatus = INP(ZLineCntlReg)
MSBSave = INP(ZMSB)
OUT ZMSB,0
OUT ZLineCntlReg,LineCntlStatus OR 128
OUT ZLSB,LeastSignifByte
OUT ZMSB,MostSignifByte
OUT ZLineCntlReg,LineCntlStatus
OUT ZMSB,MSBSave
END SUB